<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="false" namespace="PetShop.Domain.Model"
				   assembly="PetShop">

<class name="Account" table="Account" >

<id name="UserId" column="UserId" type="System.String"><generator class="assigned"/></id>
<property name="Email" column="Email" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
<property name="LangPref" column="LangPref" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
<property name="BannerOpt" column="BannerOpt" access="field.pascalcase-underscore" not-null="false" type="System.Int32"  insert="true" update="true"/>
<property name="Password" column="Password" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="20" insert="true" update="true"/>
<property name="MyListOpt" column="MyListOpt" access="field.pascalcase-underscore" not-null="false" type="System.Int32"  insert="true" update="true"/>
<many-to-one name="FavCategory"  access="field.pascalcase-underscore" not-null="false" outer-join="auto" insert="true" update="true" fetch="join">
	<column name="FavCategory"/>
</many-to-one>
	
	<component name="Address"  class="AddressInfo">
		<property name="Address1" column="Addr1" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<property name="Address2" column="Addr2" access="field.pascalcase-underscore" not-null="false" type="System.String"  length="80" insert="true" update="true"/>
		<property name="City" column="City" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<property name="Country" column="Country" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="20" insert="true" update="true"/>
		<property name="FirstName" column="FirstName" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<property name="LastName" column="LastName" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<property name="Phone" column="Phone" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="20" insert="true" update="true"/>
		<property name="State" column="State" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="80" insert="true" update="true"/>
		<property name="Zip" column="Zip" access="field.pascalcase-underscore" not-null="true" type="System.String"  length="20" insert="true" update="true"/>
	</component>

</class>
</hibernate-mapping>
